import http from '@/utils/http.js';
module.exports={
	/////////////录入气瓶基本信息
	//查询气瓶
	findGasBottles:(params)=>http.request({url: '/energy-admin/gas/bottle/list',data: params,method:'get'}),
	//保存气瓶
	saveGasBottle:(params)=>http.request({url: '/energy-admin/gas/bottle/save',data: params,method:'post'}),
	//修改气瓶
	updateGasBottle:(params)=>http.request({url: '/energy-admin/gas/bottle/update',data: params,method:'post'}),
	//删除气瓶
	deleGasBottle:(id)=>http.request({url: '/energy-admin/gas/bottle/delete/'+id,data: {},method:'get'}),
	//查询制造公司
	findMadCompany:(params)=>http.request({url: '/energy-admin/made/factory/list',data: params,method:'get'}),
	//查询产品规格
	findLpgsku:(params)=>http.request({url: '/energy-admin/product/list',data: params,method:'get'}),
	//查询气瓶统计
	findGasBottleStatist:(params)=>http.request({url: '/energy-admin/gas/bottle/count',data: params,method:'post'}),
	//查询气瓶详情
	findGasBottleInfo:(id)=>http.request({url: '/energy-admin/gas/bottle/info/'+id,data: {},method:'get'}),
	//查询液化气网点
	findTenants:(params)=>http.request({url: '/iot-auth/sys/tenant/query/all',data: params,method:'post'}),
	
	//仓库列表
	findWarehouseList:(params)=>http.request({url: '/energy-admin/warehouse/list',data: params,method:'get'}),
	//出入库单列表
	findStockBillList:(params)=>http.request({url: '/energy-admin/stock/bill/pages',data: params,method:'post'}),
	//保存出入库单
	saveStockBill:(params)=>http.request({url: '/energy-admin/stock/bill/save',data: params,method:'post'}),
	//修改出入库单
	updateStockBill:(params)=>http.request({url: '/energy-admin/stock/bill/update',data: params,method:'post'}),
	//查看出入库单详情
	findStockBillInfo:(id)=>http.request({url: '/energy-admin/stock/bill/info/'+id,data: {},method:'get'}),
	//出入库扫码校验  params=qrCode
	stockScanCheck:(params)=>http.request({url: '/energy-admin/code/check',data: params,method:'post'}),
	//出库上传
	outStockUpload:(params)=>http.request({url: '/energy-admin/code/upload/out',data: params,method:'post'}),
	//入库上传
	inStockUpload:(params)=>http.request({url: '/energy-admin/code/upload/in',data: params,method:'post'}),
	//关闭出库、入库订单
	closeStockOrder:(id)=>http.request({url: '/energy-admin/stock/bill/close/'+id,data: {},method:'get'}),
	//库存查询统计所有
	findStockAllStatist:(params)=>http.request({url: '/energy-admin/warehouse/stock/count/all',data: params,method:'post'}),
	// 根据网点和产品统计
	findSiteAndProdStatist:(params)=>http.request({url: '/energy-admin/warehouse/stock/tenant/count',data: params,method:'post'}),
	
	//查询入户安检信息
	findInspectInfo:(params)=>http.request({url: '/energy-admin/codepatrol/circulation/list',data: params,method:'get'}),
	
	//查询液化气配送订单
	findPatrolRouteList:(params)=>http.request({url: '/energy-admin/patrol/route/list',data: params,method:'get'}),
	liquefiedGasList:(params)=>http.request({url: '/energy-admin/lpgorder/list',data: params,method:'get'}),
	liquefiedGasOrderArrive:(params)=>http.request({url: '/energy-admin/lpgorder/arrive',data: params,method:'get'}),
	liquefiedGasOrderCheack:(params)=>http.request({url: '/energy-admin/lpgorder/patrol',data: params,method:'post'}),
	liquefiedGasSecurityList:(params)=>http.request({url: '/worksite-admin/danger/type/listByInspectType',data: params,method:'get'}),
	liquefiedGasRoomOrderCheckDetail:(params)=>http.request({url: '/energy-admin/lpgorder/patrolDetail',data: params,method:'get'}),
	liquefiedGasRoomYearCheckList:(params)=>http.request({url: '/energy-admin/lpg/patrol/record/listByYear',data: params,method:'get'}),
	liquefiedGasRoomYearCheackItem:(params)=>http.request({url: '/worksite-admin/danger/type/getTree',data: params,method:'get'}),
	liquefiedGasRoomYearCheck:(params)=>http.request({url: '/energy-admin/lpg/patrol/record/patrol',data: params,method:'post'}),
	liquefiedGasRoomYearCheckDetail:(params)=>http.request({url: '/energy-admin/lpg/patrol/record/patrolDetail',data: params,method:'get'}),
	liquefiedGasRoomYearCheckRecord:(params)=>http.request({url: '/energy-admin/lpg/patrol/record/listByUserAndYear',data: params,method:'get'}),
	liquefiedGasRoomUserList:(params)=>http.request({url: '/energy-admin/lpguser/list',data: params,method:'get'}),
	// liquefiedGasVillageList:(params)=>http.request({url: '/energy-admin/village/list',data: params,method:'get'}),
	// liquefiedGasTownList:(params)=>http.request({url: '/energy-admin/town/list',data: params,method:'get'}),
	liquefiedGasUserSave:(params,type)=>http.request({url: `/energy-admin/lpguser/${type==='edit'?'update':'save'}`,data: params,method:'post'}),
	liquefiedGasUserDelete:(params)=>http.request({url: '/energy-admin/lpguser/delete',data: params,method:'post'}),
	liquefiedGasTask:(params)=>http.request({url: '/energy-admin/lpgorder/take',data: params,method:'get'}),
	/////////配送轨迹
	/////////配送轨迹
	//查询任务轨迹
	findPatrolHistory:(params)=>http.request({url: '/energy-admin/cap/history/listByPatrolTaskId',data: params,method:'get'}),
	//查询配送轨迹
	findSendTrack:(params)=>http.request({url: '/energy-admin/vehicle/location/trace',data: params,method:'post'}),
	//查询配送站点
	findSites:(params)=>http.request({url: '/iot-auth/sys/tenant/query/all',data: params,method:'post'}),
	//查询车辆
	findCars:(params)=>http.request({url: '/energy-admin/send/vehicle/query/all',data: params,method:'post'}),
	//查询车辆信息
	findCarInfo:(id)=>http.request({url: '/energy-admin/send/vehicle/get/'+id,data: {},method:'get'}),
	//液化气安检统计
	statisticByYear:(params)=>http.request({url: '/energy-admin/lpg/patrol/record/statisticByYear',data: params,method:'get'}),
	lpguserAudit:(params)=>http.request({url: '/energy-admin/lpguser/audit',data: params,method:'post'}),
	
	liquefiedGasCodeCheck:(params)=>http.request({url: '/energy-admin/code/check',data: params,method:'post'}),
	liquefiedGasBottleConfirms:(params)=>http.request({url: '/energy-admin/lpgorder/bottle/confirms',data: params,method:'post'}),
	liquefieUserInfo:(params)=>http.request({url: '/iot-auth/sys/user/info',data: params,method:'get'}),
	liquefieFlowlogList:(params)=>http.request({url: '/energy-admin/lpg/deliver/flowlog/list',data: params,method:'get'}),
	
}